const CracoLessPlugin = require('craco-less');
const px2rem = require("postcss-pxtorem");

module.exports = {
    plugins: [
        {
            plugin: CracoLessPlugin,
            options: {
                lessLoaderOptions: {
                    lessOptions: {
                        modifyVars: { '@primary-color': '#7a29a0' },
                        javascriptEnabled: true,
                    },
                },
            },
        },
    ],

    style:{
        postcss:{
            plugins:[
                px2rem({
                    rootValue: 37.5, // 设计图页面宽度为375, 划分成10份, 指定1rem=37.5
					propList: ['*'],
                })
            ]
        }
    },
};